#!/usr/bin/env python
import fileinput
import sys

args = sys.argv[1:]
if len(args) <= 0:
    pass

sys.stdout.write(sys.stdin.read()[::-1])

